﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Admin.Master" AutoEventWireup="true" CodeBehind="ManageExtendProperties.aspx.cs" Inherits="MetadataBasedConfigArch.Web.Admin.ManageExtendProperties" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">    
    <asp:LinkButton ID="AddLinkButton" CssClass="addbutton" runat="server" OnClick="AddLinkButton_Click">Add Extend Property</asp:LinkButton>
    
    <div id="ShowPanel" runat="server"> 
        <asp:GridView ID="ListGridView" AutoGenerateColumns="false" runat="server" 
            onrowcommand="ListGridView_RowCommand" 
            onrowdatabound="ListGridView_RowDataBound">
            <Columns>
                <asp:BoundField  HeaderText="TableName" DataField="TableName"/>                
                <asp:BoundField  HeaderText="FieldNick" DataField="FieldNick"/>
                <asp:BoundField  HeaderText="FieldName" DataField="FieldName"/>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="EditButton" runat="server" Text="Edit" CommandName ="VEdit"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div id="EditPanel" runat="server" visible="false">
        <div id="EditInforDiv">
            Manage Extend Properties:
        </div>
        <div class="edit_field">
            <div class="edit_field_label">
                Table Name:
            </div>
            <div class="edit_field_input">
                <asp:DropDownList ID="TableNameDropDownList" Visible="false" runat="server">
                </asp:DropDownList> 
                <asp:TextBox ID="TableNameTextBox" ReadOnly="true" Enabled="false" runat="server"></asp:TextBox>
            </div>
        </div>
        <div class="edit_field">
            <div class="edit_field_label">
                Field Name:
            </div>
            <div class="edit_field_input">
                <asp:TextBox ID="FieldNameTextBox" runat="server"></asp:TextBox>
            </div>
        </div>
        <div class="edit_field">
            <div class="edit_field_label">
                Field Nick:
            </div>
            <div class="edit_field_input">
                <asp:TextBox ID="FieldNickTextBox" runat="server"></asp:TextBox>
            </div>
        </div>
        <div class="edit_field">
            <div class="edit_field_label">
                Field Type:
            </div>
            <div class="edit_field_input">
               <%-- <asp:DropDownList ID="FieldTypeDropDownList" runat="server">
                </asp:DropDownList>--%>
                <asp:TextBox ID="FieldTypeTextBox"  runat="server"></asp:TextBox>
            </div>
        </div>
        <div class="edit_field">
            <div class="edit_field_label">
                <asp:Button ID="SaveButton" runat="server" Text="Save" 
                    onclick="SaveButton_Click"  />
            </div>
            <div class="edit_field_input">
                 
            </div>
        </div>
    </div>
</asp:Content>
